← Back to issue list

--debug does not expose appropriate environment variables

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1848513
Type
issue
State
open
Author
~racb
Labels
Created
2019-10-17 13:42:37.136740+00:00
Updated
2019-10-18 13:17:51.947559+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

It's great that when a command fails I am dropped into a shell. However if the failing command relied on environment variables, those variables aren't set and so I can't reproduce the same failure. There are two cases when this happens. 1) During an override such as an override-pull, where I expect SNAPCRAFT_* to be set (from https://snapcraft.io/docs/t/environment-variables-that-snapcraft-exposes/7569) 2) Inside a command that snapcraft itself ran. For example, if "snapcraftctl pull" runs "pip install" which fails, I expect to be able to run the command that failed (from the debug output) in the shell and see the same failure. This doesn't happen because the Python-specific environment variables aren't propagated.

Evaluation history

No evaluation history available.